package com.zsx.shopping.product.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 商品SKU
 * @TableName pms_sku
 */
@TableName(value ="pms_sku")
@Data
public class Sku implements Serializable {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * SPU ID
     */
    private Long spuId;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 默认图片
     */
    private String defaultImage;

    /**
     * 展示图片
     */
    private String displayImages;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}